#include<stdio.h>
#include<string.h>
#include"define.h"
#include"menu.h"
void menu(students dai1[], int* n){
	char option;
	do {
		printf("Enter (a) to add\nEnter (d) do delete\n"
				"Enter (l) to list\nEnter (b) to binary search\n"
				"Enter (q) to quit");
		switch(tolower(option = getchar())){
			case 'a':
				add_student(dai1, n);
				list_student(dai1,n);
				break;
			case 'd':
				del_student(dai1, n);
				list_student(dai1, n);
				break;
			case 'l':
				list_student(dai1, n);
				break;
/*			case 'b':
				binary_sort();
				break;
*/
			case 'q':
				printf("Goodbye(from CASE 0)\n");
				break;
		}
	} while (option != 'q');
}
